const fields = [
  {
    dataIndex: 'index',
    key: 'index',
    title: '序号',
    width: 50,
    scopedSlots: {
      customRender: 'subscript'
    }
  },
  {
    dataIndex: 'columnName',
    key: 'columnName',
    title: '报告名称',
    width: 200
  },
  {
    dataIndex: 'publishDate',
    key: 'publishDate',
    title: '上传时间',
    width: 100
  },
  {
    title: '操作',
    key: 'action',
    fixed: 'right',
    scopedSlots: {
      customRender: 'action'
    }
  }
]

const slotOpt = [
  {
    slot: 'action',
    component: 'Action',
    list: [
      { name: '下载', cb: 'down' },
      { name: '删除', cb: 'singleDelete', divider: true },
    ]
  }
]

module.exports = {
  fields,
  slotOpt
}
